﻿using System;
using AutoR.Models;
using LiteDB;
using Xamarin.Forms;

namespace AutoR.Services
{
	// Token: 0x020001A3 RID: 419
	public sealed class Runtime
	{
		// Token: 0x06000856 RID: 2134 RVA: 0x00069C80 File Offset: 0x00067E80
		static Runtime()
		{
			Runtime.Remote = new Remote();
			Runtime.Configs = new AllConfigs();
			Runtime.Game = new GameData();
			Runtime.ConfigDatabase = new LiteDatabase("Filename=" + DependencyService.Get<ISystem>(DependencyFetchTarget.GlobalInstance).GetLocalFilePath("Data.db") + ";Journal=false;", null, null);
			Runtime.Statistics = new LiteDatabase("Filename=" + DependencyService.Get<ISystem>(DependencyFetchTarget.GlobalInstance).GetStatistics() + ";Journal=false;", null, null);
			Runtime.ResourcePath = DependencyService.Get<ISystem>(DependencyFetchTarget.GlobalInstance).GetPersonalPath() + "/Resource";
		}

		// Token: 0x170001E5 RID: 485
		// (get) Token: 0x06000857 RID: 2135 RVA: 0x00069D21 File Offset: 0x00067F21
		// (set) Token: 0x06000858 RID: 2136 RVA: 0x00069D28 File Offset: 0x00067F28
		public static Server Server { get; set; }

		// Token: 0x170001E6 RID: 486
		// (get) Token: 0x06000859 RID: 2137 RVA: 0x00069D30 File Offset: 0x00067F30
		// (set) Token: 0x0600085A RID: 2138 RVA: 0x00069D37 File Offset: 0x00067F37
		public static string LoginServer { get; set; }

		// Token: 0x170001E7 RID: 487
		// (get) Token: 0x0600085B RID: 2139 RVA: 0x00069D3F File Offset: 0x00067F3F
		// (set) Token: 0x0600085C RID: 2140 RVA: 0x00069D46 File Offset: 0x00067F46
		public static string HMLoginServer { get; set; }

		// Token: 0x170001E8 RID: 488
		// (get) Token: 0x0600085D RID: 2141 RVA: 0x00069D4E File Offset: 0x00067F4E
		// (set) Token: 0x0600085E RID: 2142 RVA: 0x00069D55 File Offset: 0x00067F55
		public static string GameUrl { get; set; }

		// Token: 0x170001E9 RID: 489
		// (get) Token: 0x0600085F RID: 2143 RVA: 0x00069D5D File Offset: 0x00067F5D
		// (set) Token: 0x06000860 RID: 2144 RVA: 0x00069D64 File Offset: 0x00067F64
		public static Remote Remote { get; set; }

		// Token: 0x170001EA RID: 490
		// (get) Token: 0x06000861 RID: 2145 RVA: 0x00069D6C File Offset: 0x00067F6C
		public static AllConfigs Configs { get; }

		// Token: 0x170001EB RID: 491
		// (get) Token: 0x06000862 RID: 2146 RVA: 0x00069D73 File Offset: 0x00067F73
		public static GameData Game { get; }

		// Token: 0x170001EC RID: 492
		// (get) Token: 0x06000863 RID: 2147 RVA: 0x00069D7A File Offset: 0x00067F7A
		public static LiteDatabase ConfigDatabase { get; }

		// Token: 0x170001ED RID: 493
		// (get) Token: 0x06000864 RID: 2148 RVA: 0x00069D81 File Offset: 0x00067F81
		public static LiteDatabase Statistics { get; }

		// Token: 0x170001EE RID: 494
		// (get) Token: 0x06000865 RID: 2149 RVA: 0x00069D88 File Offset: 0x00067F88
		public static IAudioManager AudioManager { get; } = DependencyService.Get<IAudioManager>(DependencyFetchTarget.GlobalInstance);

		// Token: 0x170001EF RID: 495
		// (get) Token: 0x06000866 RID: 2150 RVA: 0x00069D8F File Offset: 0x00067F8F
		public static string ResourcePath { get; }
	}
}
